<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06函数</title>
</head>
<body>
<script>
    function f1(){
      console.log("玥玥三周年快乐！");
    }
    f1();
    function f2(n){
      console.log("幸运数字" + n);
    }
    f2(255);
    function f3(a,b){
      console.log(a+b);
    }
    f3(1,"55");
    function f4(){
      console.log(arguments);
    }
    f4(1,2,3,4,5,6);
    f4(1,2,3,4,5,6,7,8,9,10)
    function f5(x, y) {
      return x-y;
    }
    console.log(f5(10,8));
    let f6 = function () {
      return 520;
    }
    console.log(f6());
    console.log(typeof f6);
    console.log(f6);
    let f7 = new Function("name","age","console.log('名字:'+name+',年龄:'+age)");
    f7('玥玥',18);
</script>
</body>
</html>